﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<List<Player>>" %>
<%@ Import Namespace="Web.Controllers"%>
<%@ Import Namespace="Data.Domain"%>

<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Home Page
</asp:Content>

<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Welcome to the Fantasy Football App</h2>
    <h3>Your Players</h3>
    
    <% foreach (var player in Model)
    { %>
      <a href="<%= Url.Action("Edit", new { id = player.Id}) %>"><%= player.Name %></a><br />
    <%} %>
</asp:Content>
